package com.demo.personalaccountingbackend.service;

import com.demo.personalaccountingbackend.dto.TokenDTO;

/**
 * 类描述信息
 *
 * @author zgx
 * @version 1.0
 * @date 2025/10/20 15:09
 */

public interface TokenService {

    TokenDTO createToken(Long userId, String username);

    boolean validateToken(String token);

    String refreshAccessToken(String refreshToken);

    void invalidateToken(String token);

    Long getExpirationTime();

    Long getRefreshExpirationTime();
}
